import request from 'utils/request'

export const login = (data) => {
  return request({
    method: 'POST',
    url: '/authorizations',
    data,
  })
}

/**
 * 获取用户个人资料
 */
export const getProfile = () => {
  return request({
    method: 'GET',
    url: '/user/profile',
  })
}
